package com.yt.order.common.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "alipay")
public class AlipayConfig {
    // 直接硬编码支付宝配置参数（替换为实际环境的值）
    private String appId = "9021000154655284";  // 沙箱环境APPID
    private String privateKey = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC0y7jv8WoGI+dWdSdAu0bA8QYqUJSV1BnyO3Noo9oAhwFdn4yYL5gtJEm3cPR0w/8GtaRwzFc/TNiwxkj2OXM0uxaoAAyTvYIpju5q33UqUIfgnDB7/XQprmfsr3Fr3l5lpqiIIyLrDxUnKF9g2IBro5jDgiYMSArPahS1Mhh1uj6w+1Fu+vskDXez8XUDAG1YGPK5WM1K7bibK0vy+bQqGFonM2uc/sR/rNHOJzg8OmrFJEEGT2axhxEdFMU/ilhr2Gj9YxEg9YvvxtOyYZlPtf+qsO6kO7knt0PoKogiIt3/XqjU8JbGVNKVr0Kc/ewfX8VWnKleELetjT8SmKJ9AgMBAAECggEAczX7ZRQfb0hD7Gl9mRd+kAdH2YE+HnhqDF3sPntjucBOk33P109FF0cvnrFhZmNbycfIwYTF+HWdBJFm/1k+3BR47JgTa7ZxEtCdiAdcH5nv7Kc7klfCRal5Wm+2xHmRCA/7B730S3xyC2ED3rA4rd8zwyrV2i+yi9ha19jTk3kIhGdk1Y050fbyf98git+6yI/zGikMdxBfAe3imrxn6YkZQxPoWw/oDyHfxsvhKfJgPROkP8tydcZOZHXqzZYpW+Q9+zxkT5vU75nQqd6OvJ+jzoJ2VGTWGT6VLCE7xGMd9xOJkB91Vkj3H7iDEdIAE8mcDF+NUuvIiOHkEUQyYQKBgQDfc9vBwkLMeZFsdZtPxv7kaiF2bdJifD/iwjA0ctDMEfkj+lWlUG3d2EsGNK/pwa2F0CFQhNgtR873LCMzQ/OJWhAxflSafWPr+BRkVURKXtkcExcJKt0u6FfKXIOkCMPEYmccFwS4xBV4jNLJvfGr/c9r3IdLBY/heVvGv/Y2tQKBgQDPIUUXu5DHCK7beyJpzXo3A88Xjod/lKSRDPmE8FLE9Vp9ARxNZQEIfxKayJaQEzdv8rnNcMBk+4AJcn7iu+mkPXKCo5HQ7/t+9K7C+fzY4qnykQKLuNe3syFtFditmFIoZzrWz4g/ok0yS/9QvL0gmC2OW+ilrPWZ3SjKXQqRqQKBgHDGVH7xwCzanh6TLJOS50n4lnLi8m9qLgQP5axS1jZoS8lwqpEIiqqQYyz6ol3jteP3KxksMr6Ho1j0Gb/h56PGpK2WCLT/29JYHlKVBiZSwFh++f1SeNcXxFcJYhcDpWoUD94JcASgUgXJbQkMqFAZhPn3DwE6CWfOjBc/AtCRAoGAedP0wp/E6Px3dIq5VAfSkZdA8HcZxXWVUeeSv5lm5Yf2YD4N+oulDu1G8Rl4TWewHL1kgayGzR6MUYIxlYS3SK4Hs0UoF/9/Kk4amH3XNW4kTZLzL2FaKCdJStMlrf1AnZkSJ5TLa7o3s5S1qDRK/Wfkq63tab0QfB5zxorxE3kCgYBH8x3Dge1xajGaeEQTBUuU8g8SwzVGyVqS9D1N/MnlG9vao/PeilEiziaSu4pghVMt297d5gnzMPGXiqj5hJkb3/+J61HcSil516ohcwAxBe7AnRrvIY8DDk2YEvCGAPdsM27L/R1cLQYzfy6ilr4HZ05sA8uSj91J4to8eXL0tg==";
    @Value("${alipay.public-key}")
    private String publicKey;
    private String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";  // 沙箱网关
    private String returnUrl = "http://localhost:5173/#/pages/order/employee/WorkOrderList";  // 同步回调地址
    private String notifyUrl = "http://c3a748f6.natappfree.cc/order-client/api/workOrderInfo/notify";  // 异步通知地址
}
